package com.kk.model.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * the class of springboot-prototype-global-exception
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2023-02-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GlobalResult<T> extends AbstractResult<T> {

    /** The serialVersionUID. */
    private static final long serialVersionUID = 874200365941306385L;

    private String code;

    private String msg;

    private T data;


    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public T getData() {
        return data;
    }

    @Override
    public void setData(T data) {
        this.data = data;
    }

}
